<?php
require('../fst.extension.php');

$album = $_GET['album'];
$type = $_GET['type'];		// type of update
if (!$album) {
	echo '$album (album id) not specified<br />';
	$err = 1;
}
if (!$type) {
	echo '$type (type of update) not specified<br />';
	$err = 1;
}
if ($err) return;

$fst = new FSTExtension();
eval('$data = $fst->' . $type . '($album);');

if ($data) {
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta http-equiv="Refresh" content="0;url=../webgallery/index.php?debug=1&album=<?php echo $album ?>&type=<?php echo $type ?>">
	<title>FST: Update</title>
	
</head>

<body>


</body>
</html>

<? } ?>